<template>
	<view class="">
		<image src="../../../static/image/people/swiper1.jpg" mode="" style="width: 100%;height:381.81rpx;"></image>
		<view class="container">
			<view class="TvType">
				<text>{{title}}</text>
			</view>
			<view class="MoreChannels">
				<view style="border-left: 3px solid #33D6A6;">
					<text style="margin-left: 10px;font-size: 16px;">更多频道</text>
				</view>
				<view class="tvListCss" v-for="(item,index) in tvList" :key="index" @click="onClickTv(item)">
					<image :src="item.url" mode="" style="height: 140rpx;width: 184rpx;margin-right: 24rpx;"></image>
					<view class="tv_type">
						<text>{{item.title}}</text>
						<view style="font-size: 24rpx; ">
							<text>正在播放：</text>
							<text style="color:#E44545;">{{item.now}}</text>
						</view>
						<view style="font-size: 24rpx;color:#9F9F9F ; ">
							<text>稍后播放：</text>
							<text>{{item.soon}}</text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				title: '',
				tvList: [{
					url: '../../../static/image/video/cctv1.png',
					title: 'CCTV-1 综合',
					now: '财经新闻',
					soon: '走进科学',
				}, {
					url: '../../../static/image/video/cctv1.png',
					title: 'CCTV-3 综合',
					now: '电影',
					soon: '走进科学',
				}, {
					url: '../../../static/image/video/cctv1.png',
					title: '四川卫视',
					now: '四川之声',
					soon: '今日看点',
				}]
			}
		},
		onLoad(option) {
			this.title = JSON.parse(decodeURIComponent(option.type));
			console.log(option)
		},
		methods: {

		}

	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 0rpx 30rpx;

		.TvType {
			margin-top: 9rpx;
			font-size: 29rpx;
			margin-bottom: 43.63rpx;
			font-weight: 500;

		}

		.MoreChannels {
			.tvListCss {
				width: 100%;
				height: 188rpx;
				display: flex;
				align-items: center;
				border-bottom: 2px solid #F8F8F8;

				.tv_type {
					font-weight: 400;
					display: flex;
					flex-flow: column;
					justify-content: space-evenly;
					height: 100%;
				}
			}
		}

	}
</style>
